package it.traveldream.EJB.entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the acquisti database table.
 * 
 */
@Entity
@NamedQuery(name="Acquisti.findAll", query="SELECT a FROM Acquisti a")
public class Acquisti implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private AcquistiPK id;

	@Column(name="numero_acquisti")
	private int numeroAcquisti;

	//bi-directional many-to-one association to Pacchetti
	@ManyToOne
	@JoinColumn(name="id_pacchetto")
	private Pacchetti pacchetti;

	public Acquisti() {
	}

	public AcquistiPK getId() {
		return this.id;
	}

	public void setId(AcquistiPK id) {
		this.id = id;
	}

	public int getNumeroAcquisti() {
		return this.numeroAcquisti;
	}

	public void setNumeroAcquisti(int numeroAcquisti) {
		this.numeroAcquisti = numeroAcquisti;
	}

	public Pacchetti getPacchetti() {
		return this.pacchetti;
	}

	public void setPacchetti(Pacchetti pacchetti) {
		this.pacchetti = pacchetti;
	}

}